﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManageFeedBack.ascx.cs" Inherits="NLLSite.Administrator.UserControl.ManageFeedBack" %>
<style type="text/css">
    .style1
    {
        width: 80px;
    }
</style>
<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Quản lý Phản Hồi</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
<table style="width:100%;">
    <tr>
        <td>
            <asp:Panel ID="Panel1" runat="server" Visible="False">
                <table style="width:100%;">
                    <tr>
                        <td class="style1">
                            Nội Dung :</td>
                        <td>
                            <asp:TextBox ID="TxrContent" runat="server" Height="101px" TextMode="MultiLine" 
                                Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Panel ID="Panel2" runat="server">
                <br />
                <asp:CheckBox ID="Cbxdele" runat="server" AutoPostBack="True" 
                    oncheckedchanged="Cbxdele_CheckedChanged" />
                &nbsp;
                <asp:Button ID="BtnDele" runat="server" Text="Xóa" onclick="BtnDele_Click" />
                &nbsp;<asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="ID" DataSourceID="LinqDataSource1" 
                    EnableModelValidation="True" GridLines="None" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged" Width="920px" 
                    ForeColor="#333333">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="Cbx" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                            ReadOnly="True" SortExpression="ID" Visible="False" />
                        <asp:BoundField DataField="FullName" HeaderText="Tên Người Gửi" 
                            SortExpression="FullName" />
                        <asp:BoundField DataField="Email" HeaderText="Địa Chỉ Email" 
                            SortExpression="Email" />
                        <asp:BoundField DataField="DateSend" HeaderText="Ngày Gửi" 
                            SortExpression="DateSend" />
                        <asp:CommandField ShowSelectButton="True" SelectText="Xem" />
                        <asp:TemplateField HeaderText="Content" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Content") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="DAL_Class.NLLDataContext" OrderBy="DateSend" 
                    TableName="FeedBacks">
                </asp:LinqDataSource>
            </asp:Panel>
        </td>
    </tr>
</table>
           </div>
        </div>
    </div>
</div>
